import React from 'react'
import {Outlet,NavLink} from "react-router-dom" //路由封装好的api  类似宇this.props.children
import {mainRouter} from "../router/RouterConfig"
import Fotter from '../components/Fotter'
function Index() {
    return (
        <div className="index">
            <header>{mainRouter[2].title}</header>
            <main>
                <Outlet/>
            </main>
            <footer>
                <Fotter/>
                {/* <NavLink to="/index/home">首页</NavLink>
                <NavLink to="/index/my">我的</NavLink> */}
            </footer>
        </div>
    )
}

export default Index
